package ynu.edu.achitectureclass.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;
import ynu.edu.achitectureclass.entity.SoilWater;

import java.util.Optional;

@Service
public interface SoilWaterRepository extends JpaRepository<SoilWater, Long> {
    Optional<Object> findTopByOrderByCreatedAtDesc();
}
